import request from '@/utils/request'

// 查询结构步骤列表
export function listStructures(query) {
  return request({
    url: '/structures/structures/list',
    method: 'get',
    params: query
  })
}

// 查询结构步骤详细
export function getStructures(structureId) {
  return request({
    url: '/structures/structures/' + structureId,
    method: 'get'
  })
}

// 新增结构步骤
export function addStructures(data) {
  return request({
    url: '/structures/structures',
    method: 'post',
    data: data
  })
}

// 修改结构步骤
export function updateStructures(data) {
  return request({
    url: '/structures/structures',
    method: 'put',
    data: data
  })
}

// 删除结构步骤
export function delStructures(structureId) {
  return request({
    url: '/structures/structures/' + structureId,
    method: 'delete'
  })
}
